<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2017-11-10
  Time: 16:13
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
    <link href="../css/bootstrap.min.css" rel="stylesheet">
    <link href="../css/bootstrap-theme.min.css" rel="stylesheet">
    <link href="../css/bootstrap.css" rel="stylesheet">
    <link href="../css/bootstrap-theme.css" rel="stylesheet">
</head>
<body>
<form action="/vir/update" method="post" class="form-horizontal">
<c:if test="${empty VMODEL_SESSION}">
    为空
</c:if>
<c:if test="${ not empty VMODEL_SESSION}">

   <h2 class="col-sm-12" >蔬菜进口管理编辑</h2> <br>
    <label class="col-md-4 ">蔬菜进口单编号：</label ><input class="form-control"  readonly type="text"  name="id" value="${VMODEL_SESSION.id}" >
   <label class="col-md-4 ">蔬菜种类：</label>
    <c:if test="${empty VTYPE_SESSION}">
        为空
    </c:if>
    <c:if test="${ not empty VTYPE_SESSION}">
        <select name="typeId" class=" form-control">
            <c:forEach items="${VTYPE_SESSION}" var="type">
            <option  value="${type.id}" ${VMODEL_SESSION.typeId==type.id?"selected":""}>${type.name}</option>
            </c:forEach>
        </select><br>

    </c:if>
    <label class="col-md-4">数量：</label><input class="form-control input-group-lg" name="quantity" value="${VMODEL_SESSION.quantity}">

</c:if>
    <br>
    <input type="reset" value="重置" class="btn btn-danger btn-lg btn-block">
    <input type="submit" value="修改" class="btn btn-primary btn-lg btn-block">
</form>
</body>
</html>
